import $http from "../http";

// 获取绩效列表
export const getAssessmentList = params => $http.post("/getAssessmentList", params)

// 获取绩效详情
export const getAssessmentDetail = params => $http.get(`/assessment/${params}`);

// 添加绩效
export const createAssessment = params => $http.post("/assessment", params);

// 修改绩效内容
export const updateAssessment = params => $http.put(`/assessment/${params._id}`, params)

// - 删除绩效考核
export const deleteAssessment = (params) =>
    $http.post(`/destroyAssessment`, params);